﻿<%@ Page Language="C#" MasterPageFile="~/Views/Compartido/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<CinePlancito.ClientesWS.Cliente>>"  %>


<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

 

     <h2>LISTADO DE CLIENTES</h2>

    <table 
        <tr >
            <th class="style8" colspan="3"></th>
            <th class="style12" >
                Apellidos
            </th>
            <span class="style11">
            <th class="style9" >
                <span class="style11">Nombre</span>
            </th>
            <th class="style9" >
                <span class="style11">Correo</span>
            </th>
            <th class="style9" >
                <span class="style11">Ocupacion</span> </span>
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr >
            <td>
                <a href="<%= Url.Action("EditarCliente",new { correo = item.Correo}) %>"> 
                <img alt="Editar" src="<%= Url.Content("../../Imagenes/application_form_edit.png") %>"  title="Editar" /></a> 
            </td>
            <td>
                <a href="<%= Url.Action("DetallesCliente",new { correo = item.Correo }) %>"> 
                <img alt="Detalles" src="<%= Url.Content("../../Imagenes/zoom.png") %>"  title="Detalle" /></a> 
            </td>
            <td class="style11">
                <a href="<%= Url.Action("EliminarCliente",new { correo = item.Correo }) %>"> 
                <img alt="Eliminar" 
                    src="<%= Url.Content("../../Imagenes/button_cancel.gif") %>" title="Eliminar" /></a> 
            </td>

            <td>
                <%: item.Apellidos %>
            </td>
            <td>
                <%: item.Nombres%>
            </td>
            <td>
                <%: item.Correo %>
            </td>
            <td>
                <%: item.Ocupacion.Nombre %>
            </td>
        </tr>

    <% } %>
                <tr>
            <td colspan="4">
                 <%: Html.ActionLink("Registro Nuevo", "RegistrarCliente")%></td>
            <td class="style9">
                [ <a href="~/Cineplancito/MenuPrincipal" ID="HeadLoginStatus" runat="server">Menu Principal</a> ]
            <td class="style8">
                &nbsp;</td>
        </tr>
    </table>



     </span>

 

</asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="HeadContent">
    <style type="text/css">
        .style8
        {
            background-color: #E5EBF1;
        }
        .style9
        {
            font-style: italic;
            background-color: #E5EBF1;
        }
        .style11
        {
            color: #0000CC;
        }
        .style12
        {
            font-style: italic;
            color: #0000FF;
            background-color: #E5EBF1;
        }
    </style>
</asp:Content>
